var app=getApp();
Page({
  myaddress(){
    wx.navigateTo({ url: '/pages/home/addresslist/addresslist?from=set' })
  },
  out(){
    wx.removeStorageSync('token');
    wx.removeStorageSync('userdata');
    wx.removeStorageSync('zhimasq');   
    wx.showToast({
      title: '退出登录',
      mask:true,
      icon:'loading',
      duration:1000
    })
    wx.removeTabBarBadge({
      index: 2, 
      fail(e) {
//        console.log(e)
      }
    });
    setTimeout(()=>{
      wx.reLaunch({url: '/pages/shouye/shouye'})
    },1000)
  }
})